From 5f2c0a19bfe0920261cb37b52916ab424bf9c9ed Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 24 Jun 2005 09:37:54 +0000 Subject: [PATCH] bitkeeper revision 1.1748.1.3 (42bbd472VxKIpvOzuAFDfVAi9gXwDA) With this patch, now x86_64 domU is fully up! We are running LTP there now. Signed-off-by: Jun Nakajima Signed-off-by: Xiaofeng Ling Signed-off-by: Xin B Li --- linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c | 2 +- linux-2.6.11-xen-sparse/drivers/xen/netback/interface.c | 2 +- linux-2.6.11-xen-sparse/drivers/xen/usbback/interface.c | 2 +- linux-2.6.11-xen-sparse/drivers/xen/usbback/usbback.c | 2 +- xen/common/grant_table.c | 6 +++++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c b/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c index 46d55d1fd4..f6bf04fe5b 100644 --- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c @@ -174,7 +174,7 @@ void blkif_connect(blkif_be_connect_t *connect) return; } - prot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED); + prot = __pgprot(_KERNPG_TABLE); error = direct_remap_area_pages(&init_mm, VMALLOC_VMADDR(vma->addr), shmem_frame<addr), tx_shmem_frame<addr), shmem_frame<length; i++, offset += PAGE_SIZE ) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 9e7b7223e9..2afdbca0bf 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -258,7 +258,11 @@ __gnttab_activate_grant_ref( { /* Write update into the pagetable. */ l1_pgentry_t pte; - pte = l1e_from_pfn(frame, _PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_DIRTY); + pte = l1e_from_pfn(frame, _PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_DIRTY +#if defined(__x86_64__) + | _PAGE_USER +#endif + ); if ( !(dev_hst_ro_flags & GNTMAP_readonly) ) l1e_add_flags(pte,_PAGE_RW); rc = update_grant_va_mapping( host_virt_addr, pte, -- 2.30.2